package org.xg.study.pd.user.impl;

import org.xg.study.pd.user.User;
import org.xg.study.pd.visitor.Visitor;

/**
 * @author CMG
 * @version 1.0
 * @description 学生
 * @cLassName Student
 * @date 2021/9/18 10:19
 **/
public class Student extends User {
    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int ranking() {
        return (int) (Math.random() * 100);
    }
}
